package com.dmap.admin.bo.backgroundv2;

import com.dmap.admin.po.DeviceType;
import com.dmap.base.pojo.BasePojo;

/**
 * \* User: helei
 * \* Date: 28/05/18
 * \* Description:
 * \
 */
public class DeviceTypeBo extends BasePojo {
    private String id;//主键id
    private String typeNumber;//设备类型编号
    private String typeName;//设备类型名称
    private String typeImageUrl;//设备类型的图片url
    private String note;//备注
    private Long createTime;//创建时间
    private Long updateTime;//最后更新时间

    private int deviceNum;//属于该类型下的设备总数

    public DeviceTypeBo(DeviceType deviceType) {
        this.id = deviceType.getId().toString();
        this.typeNumber = deviceType.getTypeNumber();
        this.typeName = deviceType.getTypeName();
        this.typeImageUrl = deviceType.getTypeImageUrl();
        this.note = deviceType.getNote();
        this.createTime = deviceType.getCreateTime();
        this.updateTime = deviceType.getUpdateTime();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTypeNumber() {
        return typeNumber;
    }

    public void setTypeNumber(String typeNumber) {
        this.typeNumber = typeNumber;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getTypeImageUrl() {
        return typeImageUrl;
    }

    public void setTypeImageUrl(String typeImageUrl) {
        this.typeImageUrl = typeImageUrl;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public int getDeviceNum() {
        return deviceNum;
    }

    public void setDeviceNum(int deviceNum) {
        this.deviceNum = deviceNum;
    }
}